package pw.ee.mgr.nbp.ws;

import javax.jws.WebService;

import pw.ee.mgr.nbp.exceptions.NBPServiceException;
import pw.ee.mgr.nbp.model.CustomerAccount;

@WebService(targetNamespace = "http://www.nbp.com/services/NBPService", serviceName = "NBPService", portName = "NBPServicePort", wsdlLocation = "WEB-INF/wsdl/NBPService.wsdl", endpointInterface = "pw.ee.mgr.nbp.ws.NBPService")
public class NBPServiceImpl {

	public boolean verifyBankAccount(CustomerAccount customerAccount) throws NBPServiceException{
         String pesel = customerAccount.getPesel();
         char[] peselCharArray = pesel.toCharArray();
         for(char c : peselCharArray)
        	 if(c == '8')
        		 return true;
         return false;
    }
	
	public void registerAccountCreationNofitication(String status) throws NBPServiceException{
		
	}
}